#include "Game.h"

bool Game::init()
{
     if(SDL_Init(SDL_INIT_VIDEO) == -1)
     {
          return false;
     }

	SDL_WM_SetIcon(IMG_Load("icon.png"), NULL);
     
	SDL_WM_SetCaption("Retro Invaders",NULL);
     
	if((screen = SDL_SetVideoMode(WWIDTH, WHEIGHT, WDEPTH, WFLAGS)) == NULL)
     {
          return false;
     }
     
     hero.init("hero.png",null);
     
     return true;
}
